﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Users
{
    public class PresenterSecondStepForModifyUser
    {
        private ISecondStepForModifyUser view;

        public PresenterSecondStepForModifyUser(ISecondStepForModifyUser view)
        {
            this.view = view;
        }

        public void UpdateData()
        {
            view.Role = view.UserToModify.Role;
            view.Login = view.UserToModify.Login;
            //view.AntiguoLogin = view.AntiguoLogin;
            //view.AntiguoLogin = view.UserToModify.Login;
            //view.Password = view.UserToModify.Password;
            //view.RetryPassword = view.UserToModify.RetryPassword;
        }

        public void ChargeDataUser()
        {
            view.UserToModify.Login = view.Login;
            view.UserToModify.Role = view.Role;
            view.UserToModify.OldLogin = view.AntiguoLogin;
            //view.UserToModify.
            //Agregar de que tipo es
            //view.UserToModify.Password = view.Password;
            //view.UserToModify.RetryPassword = view.RetryPassword;
        }
    }
}
